Add Content

The add content function allows you to programmatically add a new content block to Ektron CMS400.NET without the need of logging in.

Here is the format for the add content function:

<CFModule template=”#request.ecm.AppPath#ecmAddContent.cfm”

Username=””,
Password=””,
Domain=””,
content_title=””,
content_comment=””,
ContentHtml=””,
SummaryHTML=””,
ContentLanguage=””,
FolderID=””,
GoLive=””,
EndDate=””,
MetaInfo=””


>

This function is basically the same as the Add Content function in ASP. See Add Content for details.

The only difference between the Coldfusion function and the ASP one is the syntax for implementing it. The ColdFusion example is below.

Add Content Example

The following is an example of the add content function in a template:

<tr>

<td>

<CFModule template="#request.ecm.AppPath#ecmAddContent.cfm "AddContent UserName="admin", Password="admin", Domain="", content_title="Content Title", content_comment="Comment", ContentHTML="This is the <b>body</b> of the content.", SummaryHTML="This is the <i>summary</i> for the content.", ContentLanguage="1033", FolderID="0", GoLive="", EndDate="", MetaInfo="">

</td>

</tr>

Previous TopicNext Topic|